<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本装饰样式</title>

    <style>
        #baidu {
            text-decoration: underline;
        }
        
        #baidu2 {
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div id="baidu">百度</div>

    <a id="baidu2" href="http://www.baidu.com">百度</a>
</body>

</html>